package com.meizi.experimentcode.dsl;

/**
 * @author Administration
 * @date 2022/3/10 - 13:57 - 星期四
 * @project lambda
 * @package com.meizi.experimentcode.dsl
 * @by 晨
 */
public class test {
    public static void main(String[] args) {
        order order = MixedBuilder.forCustomer("BigBank",
                MixedBuilder.buy((t) -> t.quantity(80)
                .stock("IBM")
                .on("NYSE")
                .at(125.00)),
                MixedBuilder.sell((t) -> t.quantity(50)
                .stock("GOOGLE")
                .on("NASDAQ")
                .at(125.00)));
        System.out.println(order);
    }

}
